package model;

import java.util.Vector;

public class Diagram {
	private int sizeX, sizeY;
	
	Vector<Class> classes;
	Vector<Relationship> relationships;
	
	public int getSizeX() {
		return sizeX;
	}

	public void setSizeX(int sizeX) {
		this.sizeX = sizeX;
	}

	public int getSizeY() {
		return sizeY;
	}

	public void setSizeY(int sizeY) {
		this.sizeY = sizeY;
	}
	
	public Diagram(){
		sizeX = 1024;
		sizeY = 768;
		classes = new Vector<Class>();
		relationships = new Vector<Relationship>();		
	}
	
	public void addClass (String nameIn){
		Class classIn = new Class(nameIn);
		classes.add(classIn);
	}
	
	public void addRelationship(Class src, Class dest){
		Relationship relIn = new Relationship(src, dest);
		relationships.add(relIn);
	}

}
